<template>
  <div :class="content">
    <el-form :model="form" ref="form" label-width="100px" class="demo-ruleForm">
      <!-- 1 -->
      <el-row>
        <el-col :span="8">
          <el-form-item label="编号">
            <el-input v-model="form.number"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="客户名称">
            <el-input v-model="form.name"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="联系人">
            <el-input v-model="form.linkman"></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <!-- 2 -->
      <el-row>
        <el-col :span="8">
          <el-form-item label="订单编号">
            <el-input v-model="form.ordernumbner"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="订单商品">
            <el-input v-model="form.ordergoods"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="下单日期">
            <el-col :span="11">
              <el-date-picker
                type="date"
                placeholder="选择日期"
                v-model="form.date1"
                style="width: 100%"
              ></el-date-picker>
            </el-col>
            <el-col class="line" :span="2">-</el-col>
            <el-col :span="11">
              <el-date-picker
                type="date"
                placeholder="选择日期"
                v-model="form.date2"
                style="width: 100%"
              ></el-date-picker>
            </el-col>
          </el-form-item>
        </el-col>
      </el-row>

      <!-- 3 -->
      <el-row>
        <el-col :span="8">
          <el-form-item label="交单日期">
            <el-col :span="11">
              <el-date-picker
                type="date"
                placeholder="选择日期"
                v-model="form.date3"
                style="width: 100%"
              ></el-date-picker>
            </el-col>
            <el-col class="line" :span="2">-</el-col>
            <el-col :span="11">
              <el-date-picker
                type="date"
                placeholder="选择日期"
                v-model="form.date4"
                style="width: 100%"
              ></el-date-picker>
            </el-col>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="订单状态">
            <el-select v-model="form.value2" placeholder="请选择">
              <el-option
                v-for="item in orderstate"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="收货人">
            <el-input v-model="form.consignee"></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <!-- 4 -->
      <el-row>
        <el-col :span="8">
          <el-form-item label="收货人电话">
            <el-input v-model="form.consignee_phone"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="收货人地址">
            <el-input v-model="form.consignee_address"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="备注">
            <el-input v-model="form.remark"></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <!-- 5 -->
      <el-row>
        <el-col :span="8">
          <el-form-item label="发货状态">
            <el-select v-model="form.value3" placeholder="请选择">
              <el-option
                v-for="item in shipping_status"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="是否付款">
            <el-radio-group v-model="form.radio">
              <el-radio :label="3">未知</el-radio>
              <el-radio :label="6">有</el-radio>
              <el-radio :label="9">无</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="业务员">
            <el-input v-model="form.customer_id"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      
      <el-row>
        <el-col :span="8">
          <el-form-item label="自定义字段搜索">
            <el-input v-model="form.searching"></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <!-- 底部按钮 -->
      <el-row :class="btn">
        <el-col>
          <el-button type="primary" @click="submitForm" plain
            >立即搜索</el-button
          >
          <el-button type="warning" @click="resetForm" plain
            >清空条件</el-button
          >
          <el-button type="info" @click="exportForm" plain>导出数据</el-button>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
// import { provinceAndCityDataPlus, CodeToText } from "element-china-area-data";
export default {
  name: "OrderHighSearch",
  data() {
    return {
      form: {
        number: "",
        name: "",
        linkman: "",
        ordernumbner: "",
        ordergoods: "",
        date1: "",
        date2: "",
        date3: "",
        date4: "",
        value2: "",
        value3: "",
        consignee: "",
        consignee_phone: "",
        consignee_address: "",
        remark: "",
        radio: "",
        customer_id: "",
        searching: "",
        // options: provinceAndCityDataPlus, //所在地区省市
        // checkboxGroup1: [],
      },
      btn: "btn",
      content: "content",
    };
  },
  props: {
    orderstate: Array,
    shipping_status: Array,
  },
  methods: {
    submitForm() {}, //搜索
    resetForm() {}, //重置
    exportForm() {}, //导出
  },
};
</script>

<style lang="scss" scoped>
.content {
  margin: 20px 0px;
}
.btn {
  text-align: center;
}
</style>